package com.example.finalproject.car;

import com.example.finalproject.User.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarService {
    @Autowired
    private CarRepository carRepository;
    //调用carRepository的selectCarById方法在数据库查找车辆
    public Car selectCarById(String carId) {
        return carRepository.selectCarById(carId);
    }

}
